// 右上角小弹窗提示框,页面中间提示框
import { ElNotification,ElMessage,ElMessageBox } from 'element-plus';


export function toast(message , type = 'success',dangerouslyUseHTMLString = false){
    ElNotification({
        message,
        type,
        duration:2000,
        dangerouslyUseHTMLString
      })
}
export function showModal(content = "提示内容",title = "提示",type = 'warning'){
 return ElMessageBox.confirm(
    // 提示框内容
    content,
    title,
    // 提示框按钮
    {confirmButtonText: '确定',
      cancelButtonText: '取消',
      type
    })
}
